// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "BlasterGameMode.h"
#include "TeamsGameMode.generated.h"

/**
 * 
 */
UCLASS()
class BLASTER_API ATeamsGameMode : public ABlasterGameMode
{
	GENERATED_BODY()
public:
	ATeamsGameMode();
	//成功登录之后调用，是PlayerControlelr安全调用复制函数的第一个地方 第一个地方 第一个地方
	virtual void PostLogin(APlayerController* NewPlayer) override;

	//当Controller伴随着PlayerState离开游戏或摧毁时调用
	virtual void Logout(AController * Exiting) override;
	virtual float CalculateDamage(AController* Attacker, AController * Victim, float BaseDamage) override;
	virtual void PlayerEliminated(ABlasterCharacter* EliminatedCharacter, ABlasterPlayerController* VictimController,
															ABlasterPlayerController* AttackerController) override;
protected:
	//当状态过渡到InProgress时调用
	virtual void HandleMatchHasStarted() override;
};
